字典 = {}

# 添加键值对
字典['小明'] = 95
字典['小红'] = 60
字典['小李'] = 40

# 打印字典中的所有键
for key in 字典:
    print(key, 字典[key])  # 输出每个学生的名字和分数

# 通过字典[键名]的方法获取字典的值
# for循环遍历整个字典：
for key in 字典:
    # 条件判断：如果值满足条件
    if 字典[key] >= 60:
        # 将值改为合格
        字典[key] = '合格'
    # 否则
    else:
        # 将值改为不合格
        字典[key] = '不合格'
# 打印字典
print(字典)